package cn.kevinking.auth.model.vo;

import cn.kevinking.common.constant.TimePatternConsts;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * bfz authentication object
 *
 * @author kevinking
 * @since 02 May 2025
 */
@Data
public class BfzAuthenticationVO {
	private String username;
	private String token;
	@JsonFormat(pattern = TimePatternConsts.ISO_DATETIME, timezone = TimePatternConsts.CHINA_STANDARD_TIMEZONE)
	private LocalDateTime timestamp;

	public BfzAuthenticationVO(String username, String token) {
		this.username = username;
		this.token = token;
		this.timestamp = LocalDateTime.now();
	}
}
